package graphicsExtended.animation.animationSequence;

import java.awt.Image;
import java.awt.Point;
import tuples.Pair;

/**
 * A simple implementation of StillFrame that simple wraps
 * the given Image and Point.
 * 
 * @author Shimu
 * @date 10-Oct-2012
 */
public class WrapperStillFrame extends StillFrame {

    private final Pair<Image, Point> tuple;

    public WrapperStillFrame(Image img, Point pt) {
        this.tuple = new Pair<Image, Point>(img, pt);
    }

    @Override
    public Pair<Image, Point> getNextFrame() {
        return tuple;
    }

}
